import { IsOptional, IsString, IsEmail, MaxLength } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';

export class UpdateUserDto {
    @ApiPropertyOptional({
        description: 'User\'s full name',
        example: 'John Doe',
        maxLength: 100,
        required: false
    })
    @IsOptional()
    @IsString()
    @MaxLength(100)
    fullName?: string;

    @ApiPropertyOptional({
        description: 'User\'s email address',
        example: 'john.doe@example.com',
        required: false
    })
    @IsOptional()
    @IsEmail()
    email?: string;
}
